//调用接口配置文件
import { request } from 'config/request'
import config from 'config/config'
// 定义接口

//获取区域
export async function getProjectPermission(params) {
    return request({
        url: `${config.aheadPlan}system/login/getProjectPermission?userId=${params.userId}`,
        method: 'GET',
    });
  };
 //获取城市
 export async function findByCity(params) {
    return request({
        url: `${config.aheadPlan}admin/competitorWeekly/competitorWeekly/findByCity`,
        method: 'GET',
        data: params,
    });
  };
export async function getFirst(params) {
    return request({
        url: `${config.aheadPlan}admin/landAuction/landAuction/edit?type=${params.type}`,
        method: 'POST',
    });
};
//新增
export async function addFun(params) {
    return request({
        url: `${config.aheadPlan}admin/policyCheck/policyCheck/add`,
        method: 'POST',
        data: params,
    });
  };

export async function queryInfo(params) {
    return request({
        url: `${config.aheadPlan}admin/policyCheck/policyCheck/queryById`,
        method: 'GET',
        data: params,
    });
  };